:root {
	/* 头部区高度 */
	--headH: 66px;
	/* 版心宽度 */
	--contW: 1200px;
	/* 主题颜色 */
	--themeColor: #00bdff;
	/* 边框色 */
	--borderColor: #d1d1d1;
}

/* 头部区 */
#header {
	width: 100%;
	height: var(--headH);
}

header {
	left: 0;
	top: 0;
	z-index: 40;
	padding: 0 28px;
	width: 100%;
	min-width: var(--contW);
	height: var(--headH);
	border-bottom: 1px solid #aec7ec;
}

header > h2 > a {
	display: block;
	width: 160px;
	height: 30px;
	background: url(../imgs/api-new-logo-white.png) no-repeat;
	font-size: 0px;
}

header > ul li {
	position: relative;
	margin-right: 8px;
	width: 76px;
	height: var(--headH);
	line-height: var(--headH);
	text-align: center;
}

header > ul li.active {
	color: var(--themeColor);
	font-weight: bold;
}

header > ul li.active::after {
	position: absolute;
	display: block;
	content: "";
	left: 50%;
	bottom: 0px;
	transform: translateX(-50%);
	width: 40%;
	height: 2px;
	background-color: var(--themeColor);
}

header > div:last-child > span {
	display: block;
	padding: 6px 14px;
	border-radius: 20px;
}

header > div:last-child > span:first-child {
	border: 1px solid var(--borderColor);
}

header > div:last-child > span:last-child {
	margin-left: 10px;
	background-color: #ed510a;
}

/* API分类区 */
#APICate {
	padding-top: 20px;
}

#APICate > h2 {
	height: 80px;
	line-height: 80px;
	font-size: 22px;
	color: #3d3e3e;
}

#APICate > ul {
	display: flex;
	flex-wrap: wrap;
}

#APICate > ul li {
	margin-right: 16px;
	margin-bottom: 12px;
	padding: 8px 14px;
	border: 1px solid var(--borderColor);
	border-radius: 10px;
	color: #666;
	font-size: 12px;
}

#APICate > ul li:hover {
	cursor: pointer;
}

#APICate > ul li.active {
	color: var(--themeColor);
	border: 1px solid var(--themeColor);
}

#APICate > div {
	margin-top: 80px;
	margin-bottom: 40px;
}

#APICate > div > strong {
	margin-right: 16px;
}

#APICont {
	width: 100%;
	min-height: 240vh;
}

/* API卡片区 */
#APICont > #APIContList {
	display: flex;
	flex-flow: row wrap;
}

#APICont > #APIContList li {
	flex-direction: column;
	width: 228px;
	height: 270px;
	overflow: hidden;
	border: 1px solid var(--borderColor);
	margin-bottom: 12px;
}

/* 否定伪类选择器：除选中以外的标签都生效 */
#APICont > #APIContList li:not(:nth-child(5n)) {
	margin-right: 12px;
}

#APICont > #APIContList li > p:nth-child(2) {
	font-size: 12px;
	height: 40px;
	line-height: 40px;
}

#APICont > #APIContList li > p:nth-child(3) {
	font-size: 14px;
	height: 20px;
	line-height: 20px;
}

#APICont > #APIContList li > a {
	display: block;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 190px;
	height: 30px;
	line-height: 30px;
	font-size: 14px;
	color: #fff;
	text-align: center;
	background: var(--themeColor);
	transition: bottom 0.5s;
}

#APICont > #APIContList li:hover {
	cursor: pointer;
	box-shadow: 4px 4px 10px #ccc;
}

#APICont > #APIContList li:hover > a {
	bottom: 20px;
}

#APICont > #APIContList li > span {
	display: inline-block;
	top: 10px;
	left: 10px;
	width: 56px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-size: 12px;
	color: var(--themeColor);
	background-color: #e5f8ff;
}

#sorter {
	display: flex;
	margin: 20px auto;
	width: 50%;
	height: 30px;
}

#sorter li {
	margin-right: 10px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
}

#sorter li.active {
	border-radius: 50%;
	background-color: var(--themeColor);
	color: #fff;
}

#sorter li:hover {
	cursor: pointer;
}

/* 蒙层 */
#mask {
	display: none;
	top: 0;
	left: 0;
	z-index: 70;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

/* 登录模态框 */
#loginModal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 90;
	transform: translate(-50%, -50%);
	padding: 35px 20px;
	width: 400px;
	height: 550px;
	background-color: #fff;
}

#loginModal > div:last-child {
	width: 210px;
	height: 58px;
}

#loginModal > #loginModalTab {
	display: flex;
	margin: 30px auto;
}

#loginModal > #loginModalTab i {
	height: 40px;
	line-height: 40px;
	color: var(--borderColor);
}

#loginModal > #loginModalTab li {
	width: 200px;
	height: 40px;
	line-height: 40px;
	text-align: center;
}

#loginModal > #loginModalTab li:hover {
	cursor: pointer;
}

#loginModal > #loginModalTab li.active {
	position: relative;
	color: var(--themeColor);
}

#loginModal > #loginModalTab li.active::after {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	display: block;
	content: "";
	width: 25%;
	height: 4px;
	background-color: var(--themeColor);
}

#loginModal > .loginCont {
	display: none;
}

#loginModal > .loginCont.on {
	display: block;
}
.loginCont input {
    width: 360px;
    height: 40px;
    border: 0;
    border-bottom: 2px solid #e7e7e7;
    left: 40px;
    outline: none ;
    margin-bottom: 20px;
  }
  .loginCont button {
    width: 360px;
    height: 40px;
    background-color: #00a7f2;
    color: #fff;
    border: 0;
    margin-top: 40px;
  }
.loginContbox{
    width: 290px;
    height: 290px;
    border: 1px solid black;
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin-bottom: 90px;
}
.loginContbox img{
    position: absolute;
    top: 10px;
    left: 50px;
    right: 0;
    bottom: 0;
}
.loginContbox  p{
    text-align: center;
  
    font-size: 14px;
}